package poliakov.spring.advertisement;
import java.util.List;
import poliakov.spring.advertisement.pojo.IAdvertisement;
import poliakov.spring.advertisement.pojo.ICategory;
import poliakov.spring.advertisement.pojo.ICity;

public interface AdvertisementService {

	public IAdvertisement getAadvertisement(int id);
	public void addAdvertisement(IAdvertisement advertisement);
	public List<IAdvertisement> getAllAds();
	//public List<IAadvertisement> getRecentAds (int count);
	//public List<IAadvertisement> getAdsForCategory(ICategory category);
	//public List<IAadvertisement> getAdsForCategory(ICity city);
	  
	public ICity getCity(int id);
	public void addCity(ICity city);
	public List<ICity> getAllCityies();
	  
	public ICategory getCategory(int id);
	public void addCategory(ICategory category);
	public List<ICategory> getAllCategories();
}
